﻿namespace KMSimulator.Model
{
    public class KeyboardAction : KMActionBase
    {
        /// <summary>
        /// 按键
        /// </summary>
        public string Keys { get; set; } = string.Empty;

        /// <summary>
        /// 按键1
        /// </summary>
        public string? Keys1 { get; set; }

        public override KMActionType ActionType => KMActionType.Keyboard;

        public override string GetActionType()
        {
            return "键盘按键";
        }

        public override string ToString()
        {
            return $"按键: {Keys} 释放时间: {ReleaseTime} 执行后延时: {Delay}";
        }
    }
}
